<?php

class Xzsdsplus_Costpriceplus_Block_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {

   public function __construct() {
	   
		parent::__construct();
		
		$this->_objectId = 'banner_id';
		$this->_blockGroup = 'costpriceplus';
		$this->_controller = 'banner';
		
		$this->_updateButton('save', 'label', Mage::helper('costpriceplus')->__('Save Banner'));
		$this->_updateButton('delete', 'label', Mage::helper('costpriceplus')->__('Delete Banner'));
	}

	public function getHeaderText()  {
		if( Mage::registry('costpriceplus') && Mage::registry('costpriceplus')->getId() ) {
			return Mage::helper('costpriceplus')->__("Edit Banner '%s'", $this->htmlEscape(Mage::registry('costpriceplus')->getTitle()));
		} else {
			return Mage::helper('costpriceplus')->__('Add Banner');
		}
	}
}